<template>
  <div style="padding: 20px 0 32px 32px;background-color: white;" align="center">
    曲线分析
    <br/>
    <v-echart :options="polar"/>
  </div>
</template>

<script>
  import ECharts from 'vue-echarts' // 在 webpack 环境下指向 components/ECharts.vue

  // 手动引入 ECharts 各模块来减小打包体积
  import 'echarts/lib/chart/line'
  import 'echarts/lib/component/polar'
  import 'echarts/lib/component/tooltip'
  import 'echarts/lib/component/legend'
  import 'echarts/lib/component/title.js'

export default {
  name: 'CharAnalysis1',
  components: {
    'v-echart': ECharts
  },
  data() {
    return {
      polar: {
        title: {
          text: '曲线分析'
        },
        tooltip: {
          trigger: 'axis'
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true
        },
        toolbox: {
          feature: {
            saveAsImage: {}
          }
        },
        xAxis: {
          type: 'category',
          boundaryGap: false
        },
        yAxis: {
          type: 'value'
        },
        series: [
          {
            name:'邮件营销',
            type:'line',
            stack: '总量',
            connectNulls:true,
            data:[['2019-07-31 12:00:00',120], ['2019-07-31 12:05:00',132], ['2019-07-31 12:10:00',101], ['2019-07-31 12:15:00',134]]
          },
          {
            name:'联盟广告',
            type:'line',
            stack: '总量',
            connectNulls:true,
            data:[['2019-07-31 12:10:00',120], ['2019-07-31 12:15:00',132], ['2019-07-31 12:20:00',101], ['2019-07-31 12:25:00',134]]
          }
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>